/*
 * Sales.cpp
 *
 *  Created on: 2009-9-30
 *      Author: steven
 */
#include <iostream>
#include "sales_items.h"

typedef int INTINStevenLapTop;
enum server_status {OK, BAD, DOWN};

using namespace std;

int test_salesitems()
{
		Sales_item sai;

		std::cin>>sai;

		std::cout<<sai<<std::endl;


		cout<<"now adding two items.."<< endl;
		Sales_item s1,s2;

		cin>>s1>>s2;

		if (s1.same_isbn(s2))
		{
			cout<<s1 + s2 << std::endl;
			return 0;
		}
		else
		{
			cerr<<"The two items have the different ISBN!"<<std::endl;
			return -1;
		}

		return 0;
}

int test_Varibles()
{
	const INTINStevenLapTop testval = 10.10;
	INTINStevenLapTop nextvalue = 2;
	const int &ref_int = testval;
	INTINStevenLapTop &new_ref = nextvalue;
	extern int myint;
	server_status current = BAD;

	new_ref = 110;
	nextvalue = ref_int;

	cout << "The test value is:" << ref_int << endl;
	cout << "The extern myint value is:" << myint << ";The nextvalue:" << nextvalue << endl;
	cout << "Current Server Status:" << current << endl;

	return 0;
}
